package com.hospital.hospitalserver.service;

import com.hospital.hospitalserver.entity.query.DoctorPatientQuery;
import com.hospital.hospitalserver.mapper.PatientVisitMapper;
import com.hospital.hospitalserver.util.Response;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 医生-患者挂号就诊相关方法
 * */
@Service
@RequiredArgsConstructor
public class DoctorVisitService {
    private final PatientVisitMapper patientVisitMapper;

    /**
     * 获取医生当天患者列表
     */
    public Response getTodayPatientList(DoctorPatientQuery query){
        return Response.success(patientVisitMapper.selectTodayPatientListByDoctor(query));
    }
}
